<!DOCTYPE html>
<html lang="zh-Hans">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
    <title>mvvm</title>
</head>

<body>
   <div id="app">
    <input type="text" s-model="number">
    <textarea s-model="number"></textarea>
    <button type="button" s-click="increment">增 加</button>
    <h3 s-bind="number"></h3>
</div>
    <script src="./mvvm.js"></script>
    <script>
       var app = new Svm({
        el: '#app',
        data: {
            number: 0
        },
        methods: {
            increment: function () {
                this.number++;
            }
        }
    });
    </script>
</body>

</html>